import { createWebHistory, createRouter } from 'vue-router'

import LoginView from '../../components/LoginView.vue'
import MiniView from '../../components/MiniView.vue'

const routes = [
  { path: '/', component: LoginView },
  { path: '/mini', component: MiniView },
  { path: '/login', component: LoginView },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

// 导出 router 路由对象，其它模块可以使用 import 导入
export default router;